<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Music-Player: Album Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Music-Player
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_album.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_album-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Album Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header for the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> class.  
 <a href="class_album.html#details">More...</a></p>

<p><code>#include &lt;Album.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Album:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_album.png" usemap="#Album_map" alt=""/>
  <map id="Album_map" name="Album_map">
<area href="class_music_collection.html" title="Represents a music collection." alt="MusicCollection" shape="rect" coords="0,112,102,136"/>
<area href="class_music_media.html" title="Represents MusicMedia." alt="MusicMedia" shape="rect" coords="0,56,102,80"/>
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,102,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a59d3cacfb14044914da95b5a9e560498"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_album.html#a59d3cacfb14044914da95b5a9e560498">Album</a> (std::string const &amp;name, std::string const &amp;interpret)</td></tr>
<tr class="memdesc:a59d3cacfb14044914da95b5a9e560498"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Ctor for the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>.  <a href="#a59d3cacfb14044914da95b5a9e560498"></a><br/></td></tr>
<tr class="separator:a59d3cacfb14044914da95b5a9e560498"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a946cde2a11f4a52d014f6510efcf769d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_album.html#a946cde2a11f4a52d014f6510efcf769d">Accept</a> (<a class="el" href="class_i_visitor.html">IVisitor</a> *visitor)</td></tr>
<tr class="memdesc:a946cde2a11f4a52d014f6510efcf769d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visits the Visitor visitor.  <a href="#a946cde2a11f4a52d014f6510efcf769d"></a><br/></td></tr>
<tr class="separator:a946cde2a11f4a52d014f6510efcf769d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33f93679e122ee9baed68588972dd196"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_album.html#a33f93679e122ee9baed68588972dd196">Add</a> (<a class="el" href="class_music_media.html">MusicMedia</a> *mm)</td></tr>
<tr class="memdesc:a33f93679e122ee9baed68588972dd196"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> to the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>.  <a href="#a33f93679e122ee9baed68588972dd196"></a><br/></td></tr>
<tr class="separator:a33f93679e122ee9baed68588972dd196"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52aeee574af41a8aac00f99e4e88a847"><td class="memItemLeft" align="right" valign="top">std::string const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_album.html#a52aeee574af41a8aac00f99e4e88a847">getInterpret</a> () const </td></tr>
<tr class="memdesc:a52aeee574af41a8aac00f99e4e88a847"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Interpret of the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>.  <a href="#a52aeee574af41a8aac00f99e4e88a847"></a><br/></td></tr>
<tr class="separator:a52aeee574af41a8aac00f99e4e88a847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_music_collection"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_music_collection')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_music_collection.html">MusicCollection</a></td></tr>
<tr class="memitem:af64350f80d149c47d864388695075214 inherit pub_methods_class_music_collection"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_collection.html#af64350f80d149c47d864388695075214">MusicCollection</a> (std::string const &amp;name)</td></tr>
<tr class="memdesc:af64350f80d149c47d864388695075214 inherit pub_methods_class_music_collection"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Ctor for a Musiccollection.  <a href="#af64350f80d149c47d864388695075214"></a><br/></td></tr>
<tr class="separator:af64350f80d149c47d864388695075214 inherit pub_methods_class_music_collection"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a20258ce6acbf98819bb74531656c46 inherit pub_methods_class_music_collection"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_collection.html#a7a20258ce6acbf98819bb74531656c46">MusicCollection</a> (TMediaKind kind, std::string const &amp;name)</td></tr>
<tr class="memdesc:a7a20258ce6acbf98819bb74531656c46 inherit pub_methods_class_music_collection"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Ctor for a Musiccollection used by albums.  <a href="#a7a20258ce6acbf98819bb74531656c46"></a><br/></td></tr>
<tr class="separator:a7a20258ce6acbf98819bb74531656c46 inherit pub_methods_class_music_collection"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d037e81f0b3877742883be6115211f0 inherit pub_methods_class_music_collection"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_collection.html#a0d037e81f0b3877742883be6115211f0">Accept</a> (<a class="el" href="class_i_visitor.html">IVisitor</a> *visitor)</td></tr>
<tr class="memdesc:a0d037e81f0b3877742883be6115211f0 inherit pub_methods_class_music_collection"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visits the Visitor visitor.  <a href="#a0d037e81f0b3877742883be6115211f0"></a><br/></td></tr>
<tr class="separator:a0d037e81f0b3877742883be6115211f0 inherit pub_methods_class_music_collection"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b86e0ec1925d254f4e9993545795ef3 inherit pub_methods_class_music_collection"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_collection.html#a7b86e0ec1925d254f4e9993545795ef3">Add</a> (<a class="el" href="class_music_media.html">MusicMedia</a> *mm)</td></tr>
<tr class="memdesc:a7b86e0ec1925d254f4e9993545795ef3 inherit pub_methods_class_music_collection"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the Musicmedia mm to the list of media.  <a href="#a7b86e0ec1925d254f4e9993545795ef3"></a><br/></td></tr>
<tr class="separator:a7b86e0ec1925d254f4e9993545795ef3 inherit pub_methods_class_music_collection"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e59003e8946289e323052d84f3f6a5b inherit pub_methods_class_music_collection"><td class="memItemLeft" align="right" valign="top">TMedia const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_collection.html#a4e59003e8946289e323052d84f3f6a5b">getMedia</a> () const </td></tr>
<tr class="memdesc:a4e59003e8946289e323052d84f3f6a5b inherit pub_methods_class_music_collection"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the list of <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>.  <a href="#a4e59003e8946289e323052d84f3f6a5b"></a><br/></td></tr>
<tr class="separator:a4e59003e8946289e323052d84f3f6a5b inherit pub_methods_class_music_collection"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_music_media"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_music_media')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_music_media.html">MusicMedia</a></td></tr>
<tr class="memitem:aebdf80a0dddb746162e77f1bf8a92071 inherit pub_methods_class_music_media"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#aebdf80a0dddb746162e77f1bf8a92071">MusicMedia</a> (TMediaKind k, std::string name)</td></tr>
<tr class="memdesc:aebdf80a0dddb746162e77f1bf8a92071 inherit pub_methods_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">The CTor of a Musicmedia.  <a href="#aebdf80a0dddb746162e77f1bf8a92071"></a><br/></td></tr>
<tr class="separator:aebdf80a0dddb746162e77f1bf8a92071 inherit pub_methods_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb14e1cad227f7a6cdd41b9a5b961b08 inherit pub_methods_class_music_media"><td class="memItemLeft" align="right" valign="top">TMediaKind&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#adb14e1cad227f7a6cdd41b9a5b961b08">getKind</a> () const </td></tr>
<tr class="memdesc:adb14e1cad227f7a6cdd41b9a5b961b08 inherit pub_methods_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the kind of the Media.  <a href="#adb14e1cad227f7a6cdd41b9a5b961b08"></a><br/></td></tr>
<tr class="separator:adb14e1cad227f7a6cdd41b9a5b961b08 inherit pub_methods_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c939438e2f8eb7d2185657f2f3e292b inherit pub_methods_class_music_media"><td class="memItemLeft" align="right" valign="top">std::string const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#a8c939438e2f8eb7d2185657f2f3e292b">getName</a> () const </td></tr>
<tr class="memdesc:a8c939438e2f8eb7d2185657f2f3e292b inherit pub_methods_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Name of the <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>.  <a href="#a8c939438e2f8eb7d2185657f2f3e292b"></a><br/></td></tr>
<tr class="separator:a8c939438e2f8eb7d2185657f2f3e292b inherit pub_methods_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#aa3e791419d84c4c346ef9499513b8e00">~Object</a> ()</td></tr>
<tr class="memdesc:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_object.html" title="Common Baseclass for all other classes.">Object</a> class.  <a href="#aa3e791419d84c4c346ef9499513b8e00"></a><br/></td></tr>
<tr class="separator:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#a86a84ed2d1207e5f8827165ac2941106">deleteObject</a> (<a class="el" href="class_object.html">Object</a> *obj)</td></tr>
<tr class="memdesc:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory used by obj.  <a href="#a86a84ed2d1207e5f8827165ac2941106"></a><br/></td></tr>
<tr class="separator:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_music_collection"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_music_collection')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_music_collection.html">MusicCollection</a></td></tr>
<tr class="memitem:aa078d266197901d2785418f5fea45d71 inherit pro_attribs_class_music_collection"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa078d266197901d2785418f5fea45d71"></a>
TMedia&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_collection.html#aa078d266197901d2785418f5fea45d71">mMedia</a></td></tr>
<tr class="memdesc:aa078d266197901d2785418f5fea45d71 inherit pro_attribs_class_music_collection"><td class="mdescLeft">&#160;</td><td class="mdescRight">The List of <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> contained within the Musiccollection. <br/></td></tr>
<tr class="separator:aa078d266197901d2785418f5fea45d71 inherit pro_attribs_class_music_collection"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Header for the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> class. </p>
<p>Represents an <a class="el" href="class_album.html" title="Header for the Album class.">Album</a></p>
<p>The class <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> specializes <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a> but allows only to add songs.</p>
<dl class="section author"><dt>Author</dt><dd>Thomas Pfeiffer </dd></dl>
<dl class="section date"><dt>Date</dt><dd>06.12.2012 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a59d3cacfb14044914da95b5a9e560498"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Album::Album </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>interpret</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The Ctor for the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. </p>
<p>The CTor of an <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The Name of the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> </td></tr>
    <tr><td class="paramname">interpret</td><td>The interpret of the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a946cde2a11f4a52d014f6510efcf769d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Album::Accept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_visitor.html">IVisitor</a> *&#160;</td>
          <td class="paramname"><em>visitor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visits the Visitor visitor. </p>
<p>Calls visit of the concrete Visitor visitor </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">visitor</td><td>A Pointer to the concrete Visitor that should be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_music_media.html#a553df3f844aefbe688c007ffca5e0777">MusicMedia</a>.</p>

</div>
</div>
<a class="anchor" id="a33f93679e122ee9baed68588972dd196"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Album::Add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_music_media.html">MusicMedia</a> *&#160;</td>
          <td class="paramname"><em>mm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Adds <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> to the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. </p>
<p>The Function Add adds the <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> mm to the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. mm must only be of kind song. Otherwise an exception is thrown. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mm</td><td>The <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> want to add. Must only be a <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::exception</td><td>in case mm is not of kind <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_music_media.html#ab0e3399ad9af0314a82deecc38be0f57">MusicMedia</a>.</p>

</div>
</div>
<a class="anchor" id="a52aeee574af41a8aac00f99e4e88a847"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string const * Album::getInterpret </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the Interpret of the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. </p>
<p>This function returns the album's interpret; </p>
<dl class="section return"><dt>Returns</dt><dd>The albums interpret. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_album.html">Album</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
